/*
 * @Descripttion:
 * @version:
 * @Author: cxguo
 * @Date: 2019-12-13 17:04:37
 * @LastEditors: cxguo
 * @LastEditTime: 2019-12-17 10:41:09
 */
import SecondMenu from '@/components/SecondMenu'

export default [
  {
    path: '/basedata',
    component: SecondMenu,
    title: '商品',
    children: [
      {
        path: 'goods_list',
        name: 'Goods',
        component: () => import('@/views/goods'),
        meta: { title: '商品', add: true }
      },
      {
        path: 'goods_add',
        name: 'GoodsAdd',
        hidden: true,
        component: () => import('@/views/goods/detail/save-main'),
        meta: { title: '新增商品' }
      },
      {
        path: 'customer',
        name: 'Customer',
        component: () => import('@/views/goods/category/main.vue'),
        meta: { title: '商品分类' }
      },
      {
        path: 'specs_list',
        name: 'SpecsList',
        component: () => import('@/views/goods/specs'),
        meta: { title: '规格配置' }
      },
      {
        path: 'unit_list',
        name: 'unitList',
        component: () => import('@/views/goods/unit'),
        meta: { title: '单位配置' }
      },
      {
        path: 'goodstemp_list',
        name: 'GoodstempList',
        component: () => import('@/views/goods/unit'),
        meta: { title: '商品模板', add: true }
      },
      {
        path: 'goodstemp_add',
        name: 'GoodstempAdd',
        hidden: true,
        component: () => import('@/views/goods/unit'),
        meta: { title: '新增商品模板' }
      }
    ]
  },
  {
    title: '往来单位',
    path: '/basedata',
    component: SecondMenu,
    children: [
      {
        path: 'customer_list',
        name: 'CustomerList',
        component: () => import('@/views/customer'),
        meta: { title: '客户' }
      },
      {
        path: 'supplier_list',
        name: 'SupplierList',
        component: () => import('@/views/supplier'),
        meta: { title: '供应商' }
      }
    ]
  }
]
